import { REC_SET_DATA } from "../action/actionType";

export let rec = (state = {
    recData: null
}, action) => {
    let { type } = action;
    let newState = { ...state };
    switch (type) {
        case REC_SET_DATA:
            newState.recData = action.obj;
            return newState
            break;
        default:
            return newState
            break;
    }
}